package com.example.demo.controller;

import java.util.HashMap;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/web")
public class DemoController {
	@RequestMapping(value = "/index")
	public HashMap<String, String> index() {
		HashMap<String,String> hashMap = new HashMap<String,String>();
		hashMap.put("hello", "word");
		hashMap.put("nihao", "你好");
		return hashMap; 
	}
}
